package com.wildlife.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("animal_info")  // 指定数据库中的表名
public class AnimalInfoEntity {

    @TableId
    private Long id;  // 自动生成的主键ID

    private String name;  // 动物的名称
    private String description;  // 动物的描述
    private String chineseName;  // 种中文名
    private String latinName;  // 种拉丁名
    private String englishName;  // 种英文名

    // 构造方法
    public AnimalInfoEntity(Long id, String name, String description, String chineseName, String latinName, String englishName) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.chineseName = chineseName;
        this.latinName = latinName;
        this.englishName = englishName;
    }

    public AnimalInfoEntity() {
        // 默认构造函数
    }
}
